home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Data / Sources / Pizza.cpp < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.0 KB  |  43 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. //==========================================================================
  5. #ifndef PIZZA_H
  6. #include "Pizza.h"                //  CPizza
  7. #endif
  8.  
  9. // ----- OS Layer Includes -----
  10. #ifndef FWOVLSHP_H
  11. #include "FWOvlShp.h"            // FW_COvalShape
  12. #endif
  13.  
  14. #ifndef FWPICSHP_H
  15. #include "FWPicShp.h"            // FW_CPicture, FW_CPictureShape
  16. #endif
  17.  
  18. //==========================================================================
  19. CPizza::CPizza(FW_CRect bounds)
  20.  :    fBounds(bounds)
  21. {
  22. }
  23.  
  24. //--------------------------------------------------------------------------
  25. CPizza::~CPizza()
  26. {
  27. }
  28.  
  29. //--------------------------------------------------------------------------
  30. void    
  31. CPizza::Draw(FW_CGraphicContext& gc)
  32. {
  33.     FW_COvalShape::RenderOval(gc, fBounds, FW_kFill, FW_kRGBYellow);
  34.     FW_COvalShape::RenderOval(gc, fBounds, FW_kFrame);
  35. }
  36.  
  37. //--------------------------------------------------------------------------
  38. FW_CRect    
  39. CPizza::GetBounds()
  40. {
  41.     return fBounds;
  42. }
  43.